﻿@using TinyMoocSite.ViewModels
@model DiscussContentVM

@{
    ViewBag.Title = Model.Title + "|交流空间";
    Layout = "~/Views/Student/CoursePageLayout.cshtml";
}

@section Discuss { active }

@section RightContainer
{
    <h4>交流空间&raquo;查看帖子</h4><hr />

    <div class="panel panel-info">
        <div class="panel-heading">
            <h3 class="panel-title">@Model.PostTitle (@Model.Owner, @Model.PostDate)</h3>
        </div>
        <div class="panel-body">
            @Html.Raw(Model.Content)
        </div>
    </div>

    <a href="/Student/ReplyDiscuss?CourseId=@Model.Id&DiscussId=@Model.PostId" class="btn btn-primary">我要回复</a>&nbsp;&nbsp;
    <button type="button" class="btn btn-default" onclick="history.back();">返回</button>
    <br /><br />

    @foreach (DiscussReplyVM item in Model.Replies)
    {
        <div class="panel panel-success">
            <div class="panel-heading">
                <h3 class="panel-title">@item.Owner (@item.PostDate)</h3>
            </div>
            <div class="panel-body">
                @Html.Raw(item.Content)
            </div>
        </div>
    }
}


